namespace Cos.Core.NHibernate.Mapping
{
    using FluentNHibernate.Mapping;

    public class VideoMap : ClassMap<VideoDataModel>
    {
        public VideoMap()
        {
            this.Table("Video");
            this.LazyLoad();
            this.Id(x => x.Id).GeneratedBy.Native().Column("ID");
            this.Map(x => x.OriginalCultureCode).Not.Nullable().Column("OriginalCultureCode");
            this.Map(x => x.IsExternal).Not.Nullable().Column("ExternalSource");
           // HasMany(x => x.VideoCultures).KeyColumn("VideoID");
           // HasMany(x => x.VideoTags).KeyColumn("VideoID");
        }
    }
}